package com.aids_malaria.adapter;


import android.content.Context;
import android.widget.CheckBox;

import com.aids_malaria.R;
import com.aids_malaria.base.BaseQuickAdapter;
import com.aids_malaria.base.BaseViewHolder;
import com.aids_malaria.http.response.Role;

import java.util.List;

public class AccountManagerRoleAdapter extends BaseQuickAdapter<Role> {

    public AccountManagerRoleAdapter(Context context, int layoutResID, List<Role> data) {
        super(context, layoutResID, data);
    }

    @Override
    public void convert(BaseViewHolder holder, Role item) {
        CheckBox cb_check = (CheckBox) holder.getView(R.id.cb_check);
        cb_check.setChecked(item.isCheck());
        holder.setText(R.id.tv_role_name,item.getRole_name());
    }

}
